package org.csc.admin.controller;

import lombok.extern.slf4j.Slf4j;
import org.csc.admin.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class PublicController {

    @Autowired
    private ApiService apiService;
    @Value("${from}")
    private String from;


    @GetMapping("test")
    public String test() {

        return this.from;
    }

    @GetMapping("ribbon-consumer")
    public String consumer() {
        return apiService.apiTest();
    }

}
